What are the common data-ajax-* attributes used in an AJAX-enabled form, and what do they do?
- For example:
data-ajax,data-ajax-method,data-ajax-update, etc.
home / developersection / forums / what are the common data-ajax-* attributes used in an ajax-enabled form, and what do they do?
What are the common data-ajax-* attributes used in an AJAX-enabled form, and what do they do?
data-ajax, data-ajax-method, data-ajax-update, etc.
ICSM Computer
28-Jul-2025Theoretical overview of the commonly used
data-ajax-*attributes in an Ajax.BeginForm -enabled form in ASP.NET MVC:Common
data-ajax-*Attributesdata-ajax="true"data-ajax-methodGET,POST, etc.). Default isGET.data-ajax-modereplace,before,after).data-ajax-update#divId) to inject the response HTML into.data-ajax-urldata-ajax-begindata-ajax-successdata-ajax-failuredata-ajax-completedata-ajax-loadingdata-ajax-confirmExample
Behind the Scenes
jquery.unobtrusive-ajax.js, which: